package com.bing.e313;

public class ThreadB extends Thread{

	private Object lock;

	public ThreadB(Object lock) {
		super();
		this.lock = lock;
	}

	@Override
	public void run() {
		synchronized (lock) {
			System.out.println("ThreadB notify time=" + System.currentTimeMillis() + " begin");
			lock.notify();
			System.out.println("ThreadB notify time=" + System.currentTimeMillis() + " end");
		}
	}
}
